﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;

namespace AppFramework.DinosaursParkMes.Material.Dto
{
    public class AddMaterialDTO
    {
        //public string Materialnumber { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [Required, Display(Name = "物料名称")]
        public string Name { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [Required, Display(Name = "规格型号")]
        public string Specificationsversion { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [Required, Display(Name = "单位")]
        public string Unit { get; set; }

        /// <summary>
        /// 物料类型
        /// </summary>
        [Required, Display(Name = "物料类型")]
        public string Materialtype { get; set; }

        /// <summary>   
        /// 物料属性
        /// </summary>
        [Required, Display(Name = "物料属性")]
        public string MaterialProperty { get; set; }

        /// <summary>
        /// 物料分类
        /// </summary>
        [Required, Display(Name = "物料分类")]
        public int Materialclassify { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        public bool State { get; set; } = true;

        /// <summary>
        /// 有效期
        /// </summary>
        [Display(Name = "有效期")]
        public int? Periodofvalidity { get; set; }

        /// <summary>
        /// 有效期单位
        /// </summary>
        [Display(Name = "有效期单位")]
        public string Periodofvalidityunit { get; set; }

        /// <summary>
        /// 报警天数
        /// </summary>
        [Display(Name = "报警天数")]
        public int? Alarmdays { get; set; }

        /// <summary>
        /// 库存上限
        /// </summary>
        [Display(Name = "库存上限")]
        public int? Inventoryceiling { get; set; }

        /// <summary>
        /// 库存下限
        /// </summary>
        [Display(Name = "库存下限")]
        public int? Stockfloor { get; set; }

        /// <summary>
        /// 采购价格
        /// </summary>
        [Display(Name = "采购价格")]
        public decimal? Purchaseprice { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
        public List<ImgList> ImgChildren { get; set; }
        public List<Accessorylist> AccessoryChildren { get; set; }
    }
    public class ImgList
    {
        /// <summary>
        /// 图片名称
        /// </summary>
        public string Filename { get; set; }
        public string Filepath { get; set; }
    }
    public class Accessorylist
    {
        /// <summary>
        /// 图片名称
        /// </summary>
        public string Filename { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string Filepath { get; set; }

    }
}
